The battery life is a major concern for mobile devices and choosing the right Sensor is very important to reduce the power usage and extend the
battery life.
It is recommended, for reducing the power usage, to use TYPE_GEOMAGNETIC_ROTATION_VECTOR
for background tasks,
long-running tasks and other tasks not requiring accurate motion detection.
The rule reports an issue when android.hardware.SensorManager#getDefaultSensor
uses TYPE_ROTATION_VECTOR
instead of
TYPE_GEOMAGNETIC_ROTATION_VECTOR
.